<?php
class UserException extends BizException
{
	const USER_NOT_EXIST = 0;
	const USER_HAS_EXIST = 1;
	const USER_PASSWORD_INVALID = 2;
	const USER_STATUS_INVALID = 3;

    public function __construct($key)
    {
        $msgs = array();
        $msgs[self::USER_NOT_EXIST] = gettext('user_not_exist');
        $msgs[self::USER_HAS_EXIST] = gettext('user_has_exist');
        $msgs[self::USER_PASSWORD_INVALID] = gettext('user_password_invalid');
        $msgs[self::USER_STATUS_INVALID] = gettext('user_status_invalid');
        
        parent::__construct($key, $msgs);
    }
}                                                                         
